﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MvcDeviceManager.Models
{
    public class LogIn
    {
        [Display(Name="用户名")]
        [Required(ErrorMessage="请输入用户名！")]
        public string UserName { set; get; }
        [Display(Name = "密码")]
        [DataType(DataType.Password)]
        [Required(ErrorMessage="请输入密码！")]
        public string Password{ set; get; }
        [Display(Name = "记住我")]
        public bool RememberMe { set; get; }
    }
}